<?php
include 'konek.php';
if(isset($_POST['carousel']))
{

$img1=$_POST['img1'];
$img2=$_POST['img2'];
$img3=$_POST['img3'];
$coba=array($img1,$img2,$img3);
$translate=mysql_escape_string(serialize($coba));
$icon=mysql_query("UPDATE atribut set isi='$translate' where nm_attrib='carousel'");
header('location:../editlayout.php');
}
else
if(isset($_POST['icon']))
{
	$icon=$_POST['img'];
	$sql=mysql_query("UPDATE atribut set isi='$icon' where nm_attrib='icon'");
	header('location:../editlayout.php');
}
else
{
	echo "<strong><h1>DATA NOT FOUND<h1></strong>";
}
?>